﻿<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${pageContext.request.contextPath }/css/reset.css" type="text/css" rel="stylesheet"/>
<link href="${pageContext.request.contextPath }/css/layout.css" type="text/css" rel="stylesheet"/>
<link href="${pageContext.request.contextPath }/css/main.css" type="text/css" rel="stylesheet"/>
<script language="javascript" src="${pageContext.request.contextPath }/js/util.js"></script>

<script type="text/javascript" language="javascript">
function submitForm(){
	document.getElementById("loginForm").submit();
}
window.onload=function(){
	var inputs = document.getElementById("loginForm").getElementsByTagName("input");
	for(var i=0; i<inputs.length; ++i){
		loginBlur_(inputs[i]);
	}
};
function loginFoucs_(obj){
	obj.parentNode.className = "login-form-item item-active";
}
function loginBlur_(obj){
	if(obj.value && obj.value.length>0){
		obj.parentNode.className = "login-form-item item-hascontent";
	}else{
		obj.parentNode.className = "login-form-item";
	}
	
}
</script>
<title>登录界面</title>
</head>
<body>
<div id="userLogin">
  <div class="userTop"></div> 
  <div class="userMain">
    <div class="userMainC">
    	
  <form method="post" id="loginForm" name="loginForm"
  		action="${pageContext.request.contextPath}/log/in" class="login-form">
        <h3 class="login-form-title">登录系统</h3><br/>
        <span style="color:red">${msg}</span>
        <p class="login-form-item" id="login-account">
        	<span class="user-label"></span>
          	<label for="userid">邮箱&nbsp;/&nbsp;手机号</label>
            <input value="" name="name" tabindex="1" id="name" 
            	onfocus="loginFoucs_(this)" 
            	onblur="loginBlur_(this)"/>
            	<%--人员：admin	密码：admin --%>
        </p>
        <p class="login-form-item" id="login-password">
			<span class="password-label"></span>
			<label for="password">密码</label>
            <input type="password" name="password" tabindex="2" id="password"
				onfocus="loginFoucs_(this)" 
            	onblur="loginBlur_(this)"/>
        </p>
        <p class="login-form-item">
         	<input type="button" tabindex="3" id="login_submit" class="login-form-submit" onclick="submitForm();"/>
        </p>
        </form>
   </div>
  </div>
</div>
  <div class="userBottom">
  	CopyRight &copy;Research Institute of Computer Systems of SCUT. All Rights Reserved
  </div>
</body>
</html>
